package com.jdrx.sw.sewage.beans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

@ApiModel("字典表VO")
@Data
public class DictVO {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty(value = "字典分类外键", required = true)
    private Long classifyId;

    @ApiModelProperty(value = "字典分类key,后端填写")
    private String classifyKey;

    @ApiModelProperty(value = "字典分类name,后端填写")
    private String classifyName;

    @ApiModelProperty(value = "字典排序", required = true)
    private Integer orderIdx;

    @ApiModelProperty(value = "字典值", required = true)
    @Length(max = 50)
    private String value;

    @ApiModelProperty(value = "字典名称", required = true)
    @Length(max = 50)
    private String disName;

    @ApiModelProperty("更新人名字，后端填写")
    private String updateName;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateAt;

}
